<script>
    //定义对象
    let user = {"name":"lucy","age":20}

    //传统从对象里面获取值
    let name1 = user.name
    let age1 = user.age
    console.log(name1+"=="+age1)

    //es6获取对象值
    let {name,age} = user
    console.log(name+"**"+age)

</script>